import request from '@/utils/request'

// 获取部门详情信息
export const getRrganizerStaffApi = () => {
  return request.get('/company/department')
}

// 删除部门
export const delDepartmentApi = (id) => {
  return request.delete(`/company/department/${id}`)
}

// 添加部门
export const submitFromApi = (data) => {
  return request.post('/company/department', data)
}

// 获取修改的部门的信息
export const getDepartmentMessageApi = (id) => {
  return request.get(`/company/department/${id}`)
}

// 修改部门信息
export const editDepartmentMessageApi = (data) => {
  return request.put(`/company/department/${data.id}`, data)
}

